<div id="bd">

<div class="h6">new file</div>
<form method="post" action="/file" target="ifr_form">
<input type="hidden" name="op" value="new">

<input type="hidden" name="dir" value="{{.dir}}">

<label>fileName:</label>
{{.dir}}/<input type="text" name="name" value="" class="form-control" style="width:300px" pattern="[\w\-\/\.]{1,15}" placeholder="eg:123.txt or 201408/a.json" required autofocus title="must mutch [\w\-\/\.]{1,15}">

<div><label>file content:</label></div>
<div>
<textarea style="width:95%;" rows="10"  name="content"></textarea>
</div>

<center><input type="submit" value="save it" class="btn btn-primary"></center>
</form>


</div>
<script src="/res/js/default.js"></script>
<script>
pproxy_tab_sup("#bd")
</script>

<iframe name="ifr_form" style="display:none;"></iframe>  